package com;


import java.io.IOException;

/**
 * @author liujun
 * @date 2023年11月16日15:45
 */
public class SpeechToText {
    private static final String VOICENAME = "kevin16";

    public static void main(String[] args) {
        String text = "Hello, world!";

        try {
            // 调用 eSpeak 命令行接口
            ProcessBuilder pb = new ProcessBuilder("espeak", text);
            pb.start();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
